package cn.edu.csust.coursecard.dao;

import cn.edu.csust.coursecard.dao.entity.PostReport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PostReportMapper {

    int deleteByUserIdAndPostId(@Param("userId") Integer userId,@Param("postId") Integer postId);

    int deleteByPostId(Integer postId);

    int insertSelective(PostReport postReport);

    PostReport selectByUserIdAndPostId(@Param("userId") Integer userId, @Param("postId") Integer postId);

    List<Integer> selectPostIds();

}